﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Model
{
    //分组表
    public class Group
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //分组id
        public int GroupId { get; set; }
        //分组名称
        public string GroupName { get; set; }
        //软删除
        public Boolean IsDelete { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //更新时间
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        //导航属性
        [JsonIgnore]
        //指向User
        public List<User> Users { get; set; }
    }
}
